﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Iacym.Entities;

namespace Iacym.Repository
{
    public class EstudiosBiblicosRepository : MasterRepository, IEstudiosBiblicosRepository
    {
        public void AddEstudioBiblico(ESTUDIOS_BIBLICOS estudio)
        {
            //context.Entry(estudio.PERSONA).State = System.Data.EntityState.Unchanged;
            //context.Entry(estudio.LIBRO).State = System.Data.EntityState.Unchanged;+
            estudio.LIBRO = null;
            estudio.PERSONA = null;
            context.ESTUDIOS_BIBLICOS.Add(estudio);
            context.SaveChanges();
        }
    }
}
